#ifndef GAMERESOURCES_H_INCLUDED
#define GAMERESOURCES_H_INCLUDED


#include <array>


#include "SDL/SDL_mixer.h"


#include "GRoutines.h"
#include "TRoutines.h"


// Coordinates of the various buttons in the game
#define MAIN_P1   245, 230, 191, 30
#define MAIN_P2   245, 270, 191, 30
#define MAIN_EXIT 245, 310, 191, 30
#define TO_MAIN   480, 210, 180, 40
#define OPTIONS   480, 260, 180, 40
#define QUIT      480, 310, 180, 40


typedef std::array <TTF_Font*, 2>     fArr; // Fonts with different sizes
typedef std::array <SDL_Surface*, 8>  iArr; // Images
typedef std::array <SDL_Surface*, 19> tArr; // Text
typedef std::array <Mix_Chunk*, 2>    sArr; // Sound effects


void Init();
void initDisplay(iArr& iD);
void initImageData(iArr& iD);
void initFontData(fArr &fD);
void initStringData(tArr& tD, fArr fD);
void initSoundData(sArr& sD);
void initGameResources(iArr& iD, fArr& fD, tArr& tD, sArr& sD);
void cleanUp(iArr& iD, fArr& fD, tArr& tD, sArr& sD);
void Shutdown();


#endif // GAMERESOURCES_H_INCLUDED
